package com.ruoyi.common.service.impl;


import com.ruoyi.common.core.domain.entity.TicketCompany;

import com.ruoyi.system.mapper.TicketCompanyMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * <p>
 * 服务商表 服务实现类
 * </p>
 *
 *
 */
@Service
public class TicketCompanyServiceImpl {

    @Resource
    TicketCompanyMapper baseMapper;

    /**
     * 查询被保险人的券列表
     */
    public ResultMsg getTicketCompanyAddress(String companyType) {
        // 查询服务商链接
        TicketCompany ticketCompany = baseMapper.getTicketCompanyLink(companyType);
        if (ticketCompany == null) {
            return ResultMsg.success(null);
        }
        System.out.println(ticketCompany);
        return ResultMsg.success(ticketCompany);
    }
}
